// src/api/modules/feedback.js
import request from "../request";

export default {
  /**
   * 回复反馈
   * @param {number} id - 反馈ID
   * @param {Object} data - { reply: string, operatorId: number }
   */
  replyFeedback(id, data) {
    return request.post(`/api/feedback/replyFeedback/${id}`, {
      reply: data.reply,
    });
  },
  getFeedbackList(params) {
    return request({
      url: "/api/feedback/listFeedbacks",
      method: "get",
      params: {
        status: params.status,
        userId: params.userId,
        page: params.page,
        size: params.size,
      },
    });
  },
  selectFeedbackCount() {
    return request.get("/api/feedback/selectCountFeedback");
  },
};
